import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:mypeiwan/pages/mainpage.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        locale: Locale("zh","CH"),
        //程序支持的语言环境配置
        supportedLocales: [Locale("zh","CH")],
        //Material 风格代理配置
        localizationsDelegates: [
          GlobalMaterialLocalizations.delegate,
          GlobalWidgetsLocalizations.delegate,
        ],

      title: 'Flutter Demo',
      home: MainPage(),
    );
  }
}
